package com.jztd.servone.emun;

import java.util.ArrayList;
import java.util.List;

public enum InvoiceStatusEnum {
    /**
     * 开票中
     */
    IN_PROGRESS("0", "开票中"),

    /**
     * 开票成功
     */
    SUCCESS("1", "开票成功"),

    /**
     * 开票失败
     */
    FAIL("-1", "开票失败"),

    /**
     * 已重新开票
     */
    REISSUED("2", "已重新开票"),

    /**
     * 发票作废
     */
    CANCELED("3", "发票作废");

    ;

    /**
     * 状态编码
     */
    private String code;
    private String remarks;
    InvoiceStatusEnum(String code,String remarks) {
        this.code = code;
        this.remarks = remarks;
    }
    public String getCode() {
        return code;
    }
    public static List<String> getPassStatusList(){
        List<String> list = new ArrayList<String>();
        list.add(IN_PROGRESS.getCode());
        list.add(SUCCESS.getCode());
        list.add(REISSUED.getCode());
        return list;
    }
}
